<?php $this->_extends('_layouts/blank2_layout'); ?>

<?php $this->_block('title'); ?> - 最新报警记录<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

<div id="getting-started" alt="最新报警记录">
	
	
	<h3>行为日志报警(最近10条) <div class="topten_r"><span onclick="allalarmtable();" style="cursor:pointer;">查看全部</span></div></h3>
	<table>
		<tr><th width="5" align="center">　</th><th>主机名</th><th>时间</th><th>信息类型</th><th>内容</th></tr>
		<?php foreach ($group1 as $st): ?>
		<tr class="<?php if(($countno1+1)/2==ceil(($countno1+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno1++;?></td><td><?php echo $st->hosts->hostname;?></td><td><?php echo $st->date.' '.$st->time;?></td><td><?php echo $st->infotype;?></td><td><?php echo iconv("gb2312//TRANSLIT","utf-8",Helper_FormatDisplay::ChangeTwo($st->content));?></td></tr>
		<?php endforeach; ?>
	</table>
	<p>
	<h3>系统日志报警(最近10条) <div class="topten_r"><span onclick="alleventalarm()" style="cursor:pointer;">查看全部</span></div></h3>
	<table>
		<tr><th width="5" align="center">　</th><th>主机名</th><th width="65">类型</th><th>源</th><th>描述</th><th>时间</th><th>LID</th></tr>
		<?php foreach ($group as $s): ?>
		<tr class="<?php if(($countno+1)/2==ceil(($countno+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno++;?></td><td><?php echo $s->hosts->hostname;?></td><td><?php echo iconv("gb2312//TRANSLIT","utf-8",$s->sztype);?></td><td><?php echo $s->szsource;?></td><td><?php echo iconv("gb2312//TRANSLIT","utf-8",$s->szdesc);?></td><td><?php echo $s->time;?></td><td><?php echo $s->logid;?></td></tr>
		<?php endforeach; ?>
	</table>
</div>

<?php $this->_endblock('contents'); ?>
